﻿@using HRM.Models;
@{var db = new HRMTTNS41Context();}

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - My ASP.NET MVC Application</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title"><a href="@Url.Action("Index", "Home")" title="Edit">
<img src="http://localhost:22350/Images/dh-van-lang.jpg" />
</a></p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            <li>@Html.ActionLink("Home", "Index", "Home")</li>                      
                            <li>@Html.ActionLink("Danh mục", "Index", "DanhMuc")</li>
                            <li>@Html.ActionLink("Đăng Ký", "Index", "DangKy_CTGiangDay")</li>
                            <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
                            <li>@Html.ActionLink("Import", "Import", "Home")</li>
                            <li> @Html.ActionLink("Đợt Đăng Kí", "Index", "DotDK")<ul><li>Chọn đợt đăng ký: @Html.DropDownList("abc", new SelectList(db.DotDK_TK, "TenDDKy", "TenDDKy"), new { @class="dropdown", @onchange = "setStore(this);" })</li></ul></li>
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - My ASP.NET MVC Application</p>
                </div>
            </div>
        </footer>

        
        @RenderSection("scripts", required: false)
    </body>
</html>
<script language="javascript" type="text/javascript">
    function setStore(val) {
        window.location = "/Home/SetStore?ID=" + val.value;
    }
    </script>